using System;
using System.Windows.Data;
using System.Globalization;

namespace ibba.src.noriskbo.code.converter
{
    public class VisibilidadeLabelOrigemConverter : IValueConverter
    {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return ((int)value == Constantes.CODIGO_ORIGEM_MANUAL ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return (System.Windows.Visibility.Visible);
        }
    }
}
